#!/bin/bash

echo "🔍 查找 Ollama 进程..."
ps aux | grep ollama | grep -v grep

echo ""
echo "🛑 停止 Ollama 服务..."
pkill -f ollama
# 或者如果有 systemd
# systemctl stop ollama

sleep 2

echo ""
echo "✅ 检查 GPU 状态:"
nvidia-smi

